package homework3;

public class CompanyTest {
    public static void main(String[] args) {
        ColaEmployee[] colaEmployee=new ColaEmployee[3];
        colaEmployee[0]=new SalariedEmployee("李浩晨",8,18000);
        colaEmployee[1]=new HourlyEmployee("李江涛",9,100,200);
        colaEmployee[2]=new SalesEmployee("张越",10,10000,0.05);

        Company company=new Company();

        for (int i=0;i<colaEmployee.length;i++)
        {
            company.printEmployInfo(colaEmployee[i],9);
        }
    }
}
